package com.songlanyun.modules.donationpointsconfig.controller.api;

import com.songlanyun.common.utils.R;
import com.songlanyun.modules.donationpointsconfig.service.DonationPointsConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//import org.apache.shiro.authz.annotation.RequiresPermissions;


/**
 * 公益积分捐赠设置
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-02 17:22:40
 */
@RestController
@RequestMapping("/api/donation/points/config")
public class DonationPointsConfigApiController {
    @Autowired
    private DonationPointsConfigService donationPointsConfigService;

    /**
     * 列表
     */
    @GetMapping("/list")
    //@RequiresPermissions(":donationconfig:list")
    public R list() {
        return R.ok().put("list", donationPointsConfigService.list());
    }

}
